package com.cloudservice.ccs.mapper;


import com.cloudservice.ccs.entity.WorkloadStatistics;
import com.cloudservice.ccs.model.WorkloadStatisticsAggregation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface WorkLoadStatisticsMapper {
	int save(WorkloadStatistics workloadStatistics);

	int update(Integer id, WorkloadStatistics workloadStatistics);

	int delete(Integer id);
	int partialUpdate(Integer id, Map<String, Object> fields);

	WorkloadStatistics getOne(Integer id);

	List<WorkloadStatistics> getAll();

	WorkloadStatisticsAggregation getStatisticsPartOfAggregation();

	WorkloadStatisticsAggregation getSessionPartOfAggregation();
}
